package org.example.afree;

public class Fibonacci_sequence {
    public static void main(String[] args) {
        for (int i = 1; i <= 10; i++) {
            System.out.println(get(i));
        }
    }

    public static int get(int index){
        if (index == 1 || index == 2){
            return 1;
        }
        return get(index-1)+get(index-2);
    }
}
